#include "test-module-external-interface.h"
#include <string.h>
#include "test-module-item-manager.h"

testModuleExternalInterface_t   testModuleExternalInterface;
TestModuleItemManager           testModuleItemManager;

int testModuleRegisterInterfaceFunc(testModuleExternalInterface_t *in_data)
{
    //
    if(NULL == in_data)
    {
        return -1;
    }

    memcpy(&testModuleExternalInterface, in_data, sizeof(testModuleExternalInterface));

    return 0;
}

int testModuleRecvCommandDataFunc(void *data, unsigned short data_len)
{
    if(NULL == data)
    {
        return -1;
    }

    int ret;

    ret = testModuleItemManager.recv_command_data(data, data_len);

    return ret;
}